WooCommerce\PayPalCommerce\Subscription\Helper\SubscriptionHelper A

Total Complexity 56
Dependencies 7
Dependents 11
Total lines 255
Lines of code 144
Logical lines of code 79
Comment lines 74
Methods 13
Properties 1

Methods 13

Method Rating Maintainability Complexity Lines of code
paypal_subscription_id()
A
53 9 22
cart_contains_subscription()
A
56 8 18
need_subscription_intent()
S
60 8 14
variable_paypal_subscription_variations()
S
52 5 25
cart_contains_only_one_item()
S
61 5 13
order_pay_contains_subscription()
S
62 4 11
has_subscription()
S
77 4 3
current_product_is_subscription()
S
69 3 7
is_subscription_change_payment()
S
70 3 6
checkout_subscription_product_allowed()
S
67 3 9
accept_only_automatic_payment_gateways()
S
64 2 10
__construct()
S
81 1 3
plugin_is_active()
S
80 1 3